
import WebPlatform = require('./WebPlatform');

export default class WebIOSPlatform extends WebPlatform {

    init(bg) {
        this.bg=bg;
        this.params = {
            devid: ios.getDevid(), devtype: ios.getDevtype(),
            appid: ios.getAppid(),
            appver: ios.getAppver(), token: ios.getToken()
        };
    }

    exchangeStar() {
        ios.exchangeStar();
    }

    tokenExpire() {
        ios.tokenExpire();
    }

    isFullScreen() {
        return ios.isFullScreen();
    }

    requestErr() {
        ios.requestErr();
    }

    loadSuccess() {
        ios.loadSuccess();
    }

    loadFail() {
        ios.loadFail();
    }

    enableBGM(): boolean {
        return ios.enableBGM();
    }

    setBGM() {
        ios.setBGM(1);
    }

    enableSound(): boolean {
        return ios.enableSound();
    }
    
    exit() {

        ios.exit();
     }
}